<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查询账户</title>
<script src="script/jquery.min.js"></script>
<script>
   $(function(){
	   $("button").click(function(){
		   var aid = {'accountId':$("#accountId").val()};
		   if(aid!=null&&aid!=''){
			   $.post("queryAccount",aid,function(data){
				   var obj= JSON.parse(data); 
				   console.log(obj);
				   $("#accountInfo").html(obj.money);
			   });
		   }
      });
   });
</script>
</head>
<body>
   <input type="text" id="accountId"/><button>查询</button>
   <br/>
   <div id="accountInfo"></div>
</body>
</html>